package pku.ss.movieSystem.services;

import pku.ss.movieSystem.common.PaginationSupport;
import daos.Actor;
import daos.Enacting;
import daos.Movie;
import daos.Movietype;

public interface IMovieService {

	public Movie getMovieById(Integer movieId);
	
	public PaginationSupport findLatestMovies(int startIndex, int maxResults);
	
	public PaginationSupport findMoviesByName(String movieName,int startIndex);
	
	public PaginationSupport findMoviesByActorName(String actorName, int startIndex);
	
	public PaginationSupport findMoviesByDirectorName(String actorName, int startIndex);
	
	public PaginationSupport findAllMovie(int startIndex);

	
	public String getMovieTypeInfo();
	
	public Movietype getMovieTypeByName(String mtName);
	public Actor getActorByName(String actorName);
	public void addActor(Actor actor);
	public void addMovie(Movie movie);
	public void addEnacting(Enacting enacting);
	public PaginationSupport findNewlyAddedMovie();
	
	public String getMovieByMovieId(Integer movieId);
	public void removeMovie(Integer movieId);
	public String getMovies();
}
